﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using Taxi_taxi.ViewModels;

namespace Taxi_taxi.View
{
    public partial class TaxiPage : PhoneApplicationPage
    {
        public TaxiPage()
        {
            InitializeComponent();
            this.Loaded += TaxiPage_Loaded;
        }

        void TaxiPage_Loaded(object sender, RoutedEventArgs e)
        {
            TaxiViewModel viewModel = new TaxiViewModel();
            viewModel.OnGetListTaiXeCompleted = (se) =>
            {
                lbTaxi.ItemsSource = viewModel.ListTaiXe;
            }; 
        }
    }
}